//
//  AssetCell.m
//  DaoZiJinFu
//
//  Created by woker on 16/6/27.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "AssetCell.h"

@implementation AssetCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _lines = [[UIView alloc] init];
    [self addSubview:_lines];
    [_lines mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(20);
        make.right.equalTo(self).offset(0);
        make.bottom.equalTo(self).offset(1);
        make.height.mas_equalTo(1);
    }];
    _lines.backgroundColor = BACKGROUND_COLOR;
    _cellTitle.textColor = DEFAULTCOLOR;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    AssetCell *cell = [tableView dequeueReusableCellWithIdentifier:ASSET_CELL];
    if (!cell) {
        cell = [[AssetCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ASSET_CELL];
    }
    cell.point.layer.masksToBounds = YES;
    cell.point.layer.cornerRadius = 4;
    return cell;
}

@end
